package tiantao.tianjian.order;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 天健提供接口
 *
 */
public interface PayService {
	
	/**
	 * 支付成功之后 桃谷调用此接口通知天健支付成功 
	 */
	@PostMapping("/tianjian/onPayed")
	public String onPayed(@RequestBody TgPayOrder order);
    /** 
    * 取消订单后，桃谷调用此接口通知天健订单取消
    * @param businessOrderId 业务订单id
     */
	@PostMapping("/tianjian/phyexam/cancelOrder")
	public  void cancelOrder(String businessOrderId);
	
	/**退费，调接口通知天健退费成功 */
	@PostMapping("/tianjian/onRefund")
	public String onRefund(@RequestBody TgRefundOrder order);
	
}
